using FreeSql.DataAnnotations;

namespace BootBlazorApp1.Model;

public class RoleMenu
{
    [Column(IsPrimary = true)]
    public int RoleId { get; set; }
    [Navigate(nameof(RoleId))]
    public Role? Role { get; set; }
    [Column(IsPrimary = true)]
    public int MenuId { get; set; }
    [Navigate(nameof(MenuId))]
    public Menu? Menu { get; set; }
}